#include <iostream>

#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>

#include <gen-cpp/SharedService.h>

using namespace apache::thrift;
using namespace apache::thrift::protocol;
using namespace apache::thrift::transport;
using namespace std;

using namespace shared;

int main(int argc, char **argv) {
    boost::shared_ptr<TSocket> socket(new TSocket("120.132.60.101", 9090));
    boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));
    boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));

    SharedServiceClient client(protocol);

    transport->open();

    transport->close();

    return 0;
}
